package top.yangbuyi.dto;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import top.yangbuyi.domain.BaseEntity;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @description: 杨不易网站:www.yangbuyi.top
 * @program: yangbuyiopenHis2020
 * @ClassName: DictDataDto
 * @create: 2020-08-29 22:38
 * @author: yangbuyi
 * @since： JDK1.8
 * @DictDataDto: 字典数据---数据传输对象$用于代替实体类来进行数据传输，注入额外的附加数据
 **/
@ApiModel(value = "top-yangbuyi-dto-DictDataDto")
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class DictDataDto extends BaseDto {

	  /**
	   * 字典编码
	   */
	  @ApiModelProperty(value = "字典编码")
	  private Long dictCode;

	  /**
	   * 字典排序
	   */
	  @ApiModelProperty(value = "字典排序")
	  @NotNull(message = "排序码不能为空")
	  private Integer dictSort;

	  /**
	   * 字典标签
	   */
	  @ApiModelProperty(value = "字典标签")
	  @NotNull(message = "字典标签不能为空")
	  private String dictLabel;

	  /**
	   * 字典键值
	   */
	  @ApiModelProperty(value = "字典键值")
	  @NotNull(message = "字典键值不能为空")
	  private String dictValue;

	  /**
	   * 字典类型
	   */
	  @ApiModelProperty(value = "字典类型")
	  @NotNull(message = "字典类型不能为空")
	  private String dictType;

	  /**
	   * 状态（0正常 1停用）
	   */
	  @ApiModelProperty(value = "状态（0正常 1停用）")
	  @NotNull(message = "字典状态不能为空")
	  private String status;

	  /**
	   * 备注
	   */
	  @ApiModelProperty(value = "备注")
	  private String remark;

	  /**
	   * 创建者
	   */
	  @ApiModelProperty(value = "创建者")
	  private String createBy;

	  /**
	   * 创建时间
	   */
	  @ApiModelProperty(value = "创建时间")
	  private Date createTime;

	  /**
	   * 更新者
	   */
	  @ApiModelProperty(value = "更新者")
	  private String updateBy;

	  /**
	   * 更新时间
	   */
	  @ApiModelProperty(value = "更新时间")
	  private Date updateTime;


}
